package com.atguigu.service;

import com.atguigu.base.BaseService;
import com.atguigu.entity.HouseImage;

import java.util.List;

/**
 * @PACKAGE_NAME: com.atguigu.service
 * @CLASSNAME: HouseImageService
 * @AUTHOR: zhangsan
 * @DATE: 2024/4/23 15:38
 * @SINCE 17.0.7
 * @DESCRIPTION: HouseImageService
 */
public interface HouseImageService extends BaseService<HouseImage> {
    /**
     * 根据房源id和图片类型,查找房源对应的图片
     * type tinyInt 类型 1 表示普通图片 2 表示房产图片
     * @param id
     * @param type
     * @return
     */
    List<HouseImage> findListByHouseIdAndType(Long houseId, Integer type);
}
